import { IToolbarConfig, SlateElement } from '@wangeditor/editor';
type InsertFnType = (url: string, alt: string, href: string) => void;
type ImageElement = SlateElement & {
  src: string;
  alt: string;
  url: string;
  href: string;
};
// 编辑器配置
const toolbarConfig: Partial<IToolbarConfig> = {
  /* 工具栏配置 */
  excludeKeys: ['group-video', 'fullScreen', 'insertImage']
};

export { InsertFnType, ImageElement, toolbarConfig };
